package com.report;

import com.zaxxer.hikari.HikariDataSource;

import javax.sql.DataSource;

public class OracleDataSource {
    private static HikariDataSource dataSource;
    static {
        dataSource = new HikariDataSource();
        dataSource.setJdbcUrl("jdbc:oracle:thin:@192.168.1.183:1525/ctsdb");
        dataSource.setUsername("otc_db");
        dataSource.setPassword("otc_db");
        dataSource.setDriverClassName("oracle.jdbc.OracleDriver");
    }

    public static DataSource getDataSource() {
        return dataSource;
    }
}
